package ncrnadb.ncinetview.internal;


import java.awt.event.ActionEvent;

import javax.swing.JOptionPane;

import ncrnadb.ncinetview.internal.ui.QueryDialog;

import org.cytoscape.application.CyApplicationManager;
import org.cytoscape.application.swing.AbstractCyAction;

import com.tinkerpop.blueprints.impls.orient.OrientGraph;


/**
 * Creates a new menu item under Apps menu section.
 *
 */
public class MenuAction extends AbstractCyAction {

	public MenuAction(CyApplicationManager cyApplicationManager, final String menuTitle) {
		
		super(menuTitle, cyApplicationManager, null, null);
		setPreferredMenu("Apps");
		
	}

	public void actionPerformed(ActionEvent e) {
		// Write your own function here.
		//JOptionPane.showMessageDialog(null, "Non-coding RNA DB");
            QueryDialog qdiag = new QueryDialog(null, "ncINetView (non-coding RNA DB)", true);
            qdiag.setVisible(true);
	}
}
